//
//  GenerateDatePickerViewController.h
//  GenerateDatePicker
//
//  Created by Naoki TSUTSUI on 10/02/06.
//  Copyright 2010 iphoneworld.jp. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol DateViewDelegate <NSObject>
@required
- (void)takeNewDate:(NSDate *)newDate;
- (UINavigationController *)navController;  // Return the navigation controller
@end

@interface GenerateDatePickerViewController : UITableViewController {
  UIDatePicker            *datePicker;
  UITableView             *dateTableView;
  NSDate                  *date;
  
  id <DateViewDelegate>   delegate;   // weak ref  
}
@property (nonatomic, retain) UIDatePicker *datePicker;
@property (nonatomic, retain) UITableView *dateTableView;
@property (nonatomic, retain) NSDate *date;
@property (nonatomic, assign)  id <DateViewDelegate> delegate;
-(IBAction)dateChanged;

@end
